package com.ffcs.cn.action.labelBase.output;

import com.supermap.desktop.core.Application;
import com.supermap.desktop.core.Interface.IBaseItem;
import com.supermap.desktop.core.enums.WindowType;
import com.supermap.desktop.core.implement.CtrlAction;
import com.supermap.desktop.core.utilties.FormUtilities;
import com.ffcs.cn.DevelopProperties;

/**
 * 输出功能按钮
 *
  */
public class CtrlActionOutputButton extends CtrlAction {

	public CtrlActionOutputButton(IBaseItem caller) {
		super(caller);
	}

	@Override
	protected void run() {
		Application.getActiveApplication().getOutput().output(DevelopProperties.getString("String_ClickCreateNewMap"), () -> {
			FormUtilities.fireNewWindowEvent(WindowType.MAP);
		});
	}
}
